package cn.tedu.ivos.vehicle.mapper;

import cn.tedu.ivos.vehicle.pojo.dto.AddVehicleParam;
import cn.tedu.ivos.vehicle.pojo.dto.VehicleQuery;
import cn.tedu.ivos.vehicle.pojo.entity.Vehicle;
import cn.tedu.ivos.vehicle.pojo.vo.VehicleVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface VehicleMapper {
    List<VehicleVo> selectVehicleTableMap(VehicleQuery vehicleQuery);

    int insertVehicle(Vehicle vehicle);

    int updateVehicle(Vehicle vehicle);

    int deleteVehicleById(Long id);

    int unbindVehicle(Vehicle vehicle);
}
